import { responseCode } from "../responseCode";
const zh = {
  languageName: "简体中文",
  account: {
    login: "登录",
    loginByPhone: "手机登录",
    loginByQRCode: "二维码登录",
    registe: "注册",
    otherLoginMethods: "其他登陆方式",
    rememberMe: "记住我",
    forgetPassword: "忘记密码?",
    sendValiCode: "发送验证码",
    account: "账号",
    password: "密码",
    valicode: "验证码",
    qrCode: "二维码",
    phone: "手机号",
    cannotReceiveValiCode: "无法接收验证码?",
    return: "返回",
  },
  profile: {
    myAccount: "我的账户",
    username: "用户名",
    usernameDescription: "此处填写你的用户名，用户名将展示在动态、文章、repo详情中。此外，用户名可以用来登录、找回密码。",
    email: "邮箱",
    emailDescription: "请填写个人常用邮箱，便于联系。此外，邮箱可以用来登录。",
    bio: "个性签名",
    bioDescription: "说说最近的想法。",
    avater: "头像",
    myProfile: "我的资料",
    name: "姓名",
    nameDescription: "填写你的真实姓名，如无必要，请勿擅自修改",
    gender: "性别",
    genderDescription: "你为什么要修改性别呢？？？",
    phone: "手机号",
    phoneDescription: "真实手机号，便于联系",
    birthday: "生日",
    birthdayDescription: "请填写你的公历生日",
    address: "地址",
    addressDescription: "请填写你目前的住址",
    submitAccountDetails: "提交账户信息",
    submitStaffDetails: "提交职工信息",
  },
  operations: {
    cropAvater: "裁剪头像",
    showOrModifyStaffDetail: "员工信息",
    refresh: "刷新",
    createStaff: "创建职工",
    createDepartment: "创建部门",
    deleteStaff: "删除职工",
    changePassword: "修改密码",
    closeAccount: "锁定账号",
    openAccount: "解锁账号",
    closeDepartment: "停用部门",
    openDepartment: "启用部门",
    department: "部门",
    all: "所有",
    searchHint: "搜索...",
    me: "我",
    translatePost: "翻译动态",
    closePostTranslation: "收起翻译",
    showPostTranslation: "展开翻译"
  },
  words: {
    male: "男",
    female: "女"
  },
  errors: {
    default: "数据错误",
    accountLength: "账号最少由6个字符组成",
    passwordLength: "密码最少由6个字符组成",
    userNotFound: "找不到该用户",
  },
  responseCode: {
  },
  table: {
    staff: {
      name: "职工姓名",
      gender: "性别",
      phone: "电话",
      department: "部门",
      state: "职工状态",
      note: "备注"
    },
    department: {
      name: "部门",
      state: "状态",
      createTime: "创建时间",
      note: "备注"
    },
    action: "操作"
  },
  enums: {
    staffState: {
      OK: '就职中',
      RESIGNED: '离职',
      LEAVING: '休假'
    },
    accountState: {
      OK: "正常",
      CLOSED: "关闭"
    },
    departmentState: {
      OK: "正常",
      CLOSED: "关闭"
    },
    role: {
      ROLE_NORMAL: "用户",
      ROLE_SUPERADMIN: "超级管理员",
      ROLE_DEPTADMIN: "部门管理员",
      ROLE_ARTADMIN: "文章管理员",
    },
    gender: {
      MALE: "男",
      FEMALE: "女"
    }
  },
  routes: {
    dashboard: "Dashboard",
    analyse: "分析页",
    workbench: "工作台",
  },
  date: {
    today: "今天",
    yesterday: "昨天",
    twodaysago: "前天",
    dayOfWeek: {
      '1': '星期一',
      '2': '星期二',
      '3': '星期三',
      '4': '星期四',
      '5': '星期五',
      '6': '星期六',
      '7': '星期日',
    },
    daySplitor: '日',
    monthSplitor: '月',
    yearSplitor: '年'
  }
};

zh.responseCode[responseCode.SUCCESSED] = "成功";
zh.responseCode[responseCode.PERMISSION_DENIED] = "权限不足";
zh.responseCode[responseCode.WRONG_PARAMETER] = "参数错误";
zh.responseCode[responseCode.ACCOUNT_DOESNT_EXISTS] = "账户不存在";
zh.responseCode[responseCode.ACCOUNT_AND_PASSWORD_MISMATCH] = "账户和密码不匹配";
zh.responseCode[responseCode.VERIFICATION_CODE_INCORRECT] = "验证码错误";
zh.responseCode[responseCode.ACCOUNT_CLOSED] = "账户被停用";
zh.responseCode[responseCode.TOKEN_INCORRECT] = "TOKEN错误";
zh.responseCode[responseCode.SERVER_INTERNAL_ERROR] = "服务器内部错误";
zh.responseCode[responseCode.UNKNOWN_ERROR] = "未知错误";

export default zh;